package com.enki.cigarettes.repository;

import com.enki.cigarettes.entity.BannerT;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * @author WCS.Wang
 * @version V1.0
 * @Package com.enki.cigarettes.repository
 * @Name e-cigarettes-shop-api-module
 * @Description: TODO Banner
 * @date 2019-08-02
 */
public interface BannerTRepository extends PagingAndSortingRepository<BannerT, String> {

    List<BannerT> findByRemoved(boolean removed);

    BannerT findOneByIdAndRemoved(String id, boolean removed);

}
